<?php

namespace App\Http\Controllers\Admin;

use App\Models\Log;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class LogController extends Controller
{
    public function index(){
        $page = Log::with(['user'=>function($query){
            $query->select(['id','username']);
        }])
        ->orderBy('id','desc')->paginate($this->pageSize);
        return view('Admin.Log.index',compact('page'));
    }
}
